import React from 'react'
import {useDispatch} from 'react-redux';
const Login = () => {
    const dispatch = useDispatch();
    const login = ()=>{
        dispatch({type:'login',value:true});
    }
    return (
        <div>
            登录页
            <button onClick={login}>登录</button>
        </div>
    )
}

export default Login
